package com.ctshk.rpc.localfun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.localfun.entity.LocalFunProductChannelOnlineThirdPlatform;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/24
 */
public interface LocalFunProductChannelOnlineThirdPlatformMapper extends BaseMapper<LocalFunProductChannelOnlineThirdPlatform> {

    /**
     * 清空门票线下自营自定义权限
     * @param
     * @param
     */
    @Update("UPDATE t_local_fun_product_channel_online_third_platform \n" +
            "SET is_deleted = 1,modified_id = #{modified_id}\n" +
            "WHERE product_id = #{product_id}")
    Integer clearByProductId(@Param("product_id") Long productId, @Param("modified_id")Long userId);
}
